package com.sample.plove.database.service;

import com.sample.plove.database.model.UserEntity;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * PackageName:com.sample.plove.database.service
 * Author:Administrator
 * Time:22:28
 * Date:2019/5/18
 * Describe:用户信息操作接口
 */
@Repository
public interface UserServer {

    public void addUser(UserEntity entity);

    public Optional<UserEntity> findUserById(int id);

    public List<UserEntity> findAllUser();

    public void updateUser(UserEntity entity);

    public void removeUser(UserEntity entity);

    public void cleanUser();
}
